<template>
  <button @click="modalOpen = true">
    Open full screen modal!
  </button>
  <teleport to="#endofbody" :disabled="true">
    <div v-show="modalOpen" class="modal">
      <div>
        I'm a modal!
        <button @click="modalOpen = false">
          Close
        </button>
      </div>
    </div>
  </teleport>
</template>

<script>
export default {
  name: "ModalButton",
  data() {
    return {
      modalOpen: false
    }
  }
}
</script>

<style scoped>

</style>
